<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WeiboAndroid: com.example.hp.weibo.HttpUtil类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WeiboAndroid
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">微博</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example.html">example</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1hp.html">hp</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1hp_1_1weibo.html">weibo</a></li><li class="navelem"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_http_util.html">HttpUtil</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classcom_1_1example_1_1hp_1_1weibo_1_1_http_util-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.example.hp.weibo.HttpUtil类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a1bba0a8761a79e302eb901961bc15c4b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_http_util.html#a1bba0a8761a79e302eb901961bc15c4b">getByOkHttp</a> (final String address, final RequestBody requestBody, final okhttp3.Callback callback)</td></tr>
<tr class="separator:a1bba0a8761a79e302eb901961bc15c4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96c5a985e7b2b888e7274f19d6d839f1"><td class="memItemLeft" align="right" valign="top">static Bitmap&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_http_util.html#a96c5a985e7b2b888e7274f19d6d839f1">getURLimage</a> (final String url)</td></tr>
<tr class="separator:a96c5a985e7b2b888e7274f19d6d839f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>安卓于服务器连接 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a1bba0a8761a79e302eb901961bc15c4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bba0a8761a79e302eb901961bc15c4b">&#9670;&nbsp;</a></span>getByOkHttp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.example.hp.weibo.HttpUtil.getByOkHttp </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">final RequestBody&#160;</td>
          <td class="paramname"><em>requestBody</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">final okhttp3.Callback&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>网址 </td></tr>
    <tr><td class="paramname">requestBody</td><td>要传递的数据 </td></tr>
    <tr><td class="paramname">callback</td><td>回调函数 </td></tr>
  </table>
  </dd>
</dl>
<p>服务器IP</p>
<p>开辟线程，进行网络连接</p>
<p>声明客户端</p>
<p>声明请求</p>
<p>客户端发起请求 </p>

</div>
</div>
<a id="a96c5a985e7b2b888e7274f19d6d839f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96c5a985e7b2b888e7274f19d6d839f1">&#9670;&nbsp;</a></span>getURLimage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Bitmap com.example.hp.weibo.HttpUtil.getURLimage </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取位图 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>网址 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>Bitmap位图 </dd></dl>
<p>获得连接</p>
<p>获得图片的数据流 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>G:/AndroidWork/WeiBo/app/src/main/java/com/example/hp/weibo/<a class="el" href="_http_util_8java.html">HttpUtil.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
